<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="com.sz.common.ICommonDAO" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String style1 = "text-align:right;font-size: 12px;";
String style2 = "";
String style3 = "width: 40%;color: red;text-align:left;";

ServletContext servletContext = request.getSession().getServletContext(); 
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
ICommonDAO dao = (ICommonDAO) context.getBean("CommonDAO");
List list = dao.getDicValueList("MANAGER_TYPE");
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<link href="<%= request.getContextPath() %>/css/main.css" rel="stylesheet" type="text/css" />
	<head>
		<base href="<%=basePath%>">

		<title>工作量统计</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="addManager">
		<meta http-equiv="description" content="工作量统计">
	</head>
	
	<body>
		<script type="text/javascript" src="js/calendar.js"></script>
	  	<form name="addManager_form"  action="addManager.exec" method="post" onsubmit="return check()"> 
	  	 <table width="100%" height="100px" border="0" cellpadding="0" cellspacing="0">
	  	 <tr>
		  	<td colspan="8" class="title0">工作量统计</td>
		  	
	  	</tr>	
  		<tr>
		  	<td style="<%=style1%>">日期&nbsp;</td>
		  	<td>
		  		<input type="text" id="time_b" name="time_d" readonly="readonly" style="width: 95px;" onclick="calendar.show(this)" >
		  	-
		  		<input type="text" id="time_e" name="time_e" readonly="readonly" style="width: 95px;" onclick="calendar.show(this)" >
		  	</td>
		  	
	  	 	<td style="<%=style1%>">员工姓名&nbsp;</td>
		  	<td>
		  		<input type="text" id="cust_name" name="cust_name" style="<%=style2%>">
		  	</td>
		  	
		  	<td style="<%=style1%>">统计类型&nbsp;</td>
		  	<td>
				<select id="in_managertype" name="in_managertype" style="width: 100px;">
				   <option value="1" style="font-style: italic;">按日期</option>
				   <option value="2" style="font-style: italic;">按员工</option>		
				   <option value="3" style="font-style: italic;">按日期+员工</option>	
				   <option value="4" style="font-style: italic;">按员工+日期</option>			   				   
				</select>
		  	</td>
		  	<td>
		  		<input type="button" id="tj" name="tj" value="统计" onclick="">
		  		<input type="button" id="dc" name="dc" value="导出" onclick="">
		  	</td>
	  	</tr>
	  	 	
	  	</table>
	  	
	  		
  	</form> 
  	
  
	</body>
</html>
